package com.atguigu.gmall.cart.service;

import com.atguigu.gmall.cart.entity.CartInfo;
import com.atguigu.gmall.cart.vo.AddCartSuccessVo;

import java.util.List;

public interface CartBizService {
    AddCartSuccessVo addToCart(Long skuId, Integer skuNum, String userIdKey);

    List<CartInfo> getCartList(String cartKey);

    void updateItemNum(Long skuId, Integer num, String cartKey);

    void checkItem(String cartKay, Long skuId, Integer checked);

    void deleteItem(String cartKey, String skuId);

    void deleteChecked(String cartKey);

    List<CartInfo> getCheckeds(String cartKey);

    List<CartInfo> displayItems();
}
